#! /bin/bash

while getopts f:p:w:h:t OPT 
	do
		case $OPT in
		f) in_file=$OPTARG
			;;
		p) in_passwd=$OPTARG
			;;
		w) in_width=$OPTARG
			;;
		h) in_height=$OPTARG
			;;
		t) in_port=$OPTARG
			;;
		*) echo "invalid argument."
			exit
			;;
		esac
done
qemu ubuntu-test.qcow2 -boot c -m 512 -vnc :2

printf "file: $in_file, passwd: $in_passwd, width: $in_width, height:$in_height\n"
printf "port: 5901\n"
#윗 부분이 qemu 실행되는 부분!!



